package hunter20240515_2;

public class Frog extends Animal {
    public Frog() {

    }

    public Frog(String name, int age) {
        super(name, age);
    }


    @Override
    public void drink() {
        System.out.println(getName() + "喝水水");
    }

    @Override
    public void eat() {
        System.out.println(getName() + "吃虫子");
    }
}
